import flyTo from "../base/flyTo";
import flyLine from "../app/flyLine";
import world from "../app/world";
let configInfo={
  worldR:160,
  outWorldR:165,
  websocket:{
    host:'localhost',
    port:9981,
    url:'console'
  },
  clientToken:'jjawesomeLocalToken'
}
export default class config {
  constructor() {
    if (process.env.NODE_ENV === 'development') {

    } else {
      configInfo.websocket.host = window.location.host.split(":")[0];
      configInfo.websocket.port = window.location.port;
    }

  }
  config() {
    return [
      flyTo,
      flyLine,
      world
    ]
  }
  getConfigByKey(key){
    return configInfo[key]
  }
}
config.getConfigByKey=function (key){
  return new config().getConfigByKey(key)
}
